package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
public class Demo1Application {

    public static void main(String[] args) {
        // 开启图形化界面
        System.setProperty("java.awt.headless", "false");

        SpringApplication.run(Demo1Application.class, args);

        System.out.println("启动成功");
    }

//    @Bean
//    public RestTemplate restTemplate(){     //在SpringBoot启动类中注册RestTemplate
//        return new RestTemplate();
//    }

}
